package cn.hy.tiny.demo.core;

import javax.sql.DataSource;
import java.util.HashMap;
import java.util.Map;

/**
 * @Author huang.xy
 * @Description TODO
 */
public class Configuration {

    //数据源
    private DataSource dataSource;

    // catch -> statement id  , mapper.xml 的映射
    private Map<String,MapperStatement> mapperStatementCache = new HashMap<>();


    public DataSource getDataSource() {
        return dataSource;
    }

    public void setDataSource(DataSource dataSource) {
        this.dataSource = dataSource;
    }

    public Map<String, MapperStatement> getMapperStatementCache() {
        return mapperStatementCache;
    }

    public void setMapperStatementCache(Map<String, MapperStatement> mapperStatementCache) {
        this.mapperStatementCache = mapperStatementCache;
    }
}
